import  httpInstance from './requestConfig'

export function getCartDetailData() {
    return httpInstance({
        url:'/cart/detail/',
        method:'post'
    })
}


export function updateCartGoodsNumData(data) {
    return httpInstance({
        url:'/cart/num/',
        method:'post',
        data
    })
}


export function addCart(data) {
    return httpInstance({
        url:'/cart/',
        method:'post',
        data
    })
}


export function getCartCounts(){
    return httpInstance({
        url:'/cart/counts/',
        method:'post'
    })
}

export function deleteCartGoods(data) {
    return httpInstance({
        url:'/cart/delete/',
        method:'post',
        data
    })
}